const Sequelize = require("sequelize");

const conf = {
  host: 'localhost',
  dialect: 'mysql'
}
// 建⽴连接
const seq = new Sequelize("koa2_weibo_db", "root", "admin", conf);

// 测试连接
seq.authenticate().then(() => {
  console.log('ok')
}).catch(() => {
  console.log('err')
})

module.exports = seq